package  com.songyl.patternLearn.FactoryPattern;

public abstract class ShapeFactory implements Shape {
    public  static  Shape createShapeBySign(String sign){
        switch (sign){
            case "circle":return  new Circle();
            case "square":return  new Square();
            default:return  new Circle();
        }

    }
}
